﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BoriPeter.FitnessJournal8.Models
{
    public class Meal : ModelBase
    {
        private string label;
        public string Label
        {
            get
            {
                return this.label;
            }

            set
            {
                this.label = value;
                NotifyOfPropertyChange("Label");
            }
        }

        private string name;
        public string Name
        {
            get
            {
                return this.name;
            }

            set
            {
                this.name = value;
                NotifyOfPropertyChange("Name");
            }
        }

        public Meal(string _label, string _name) : base()
        {
            label = _label;
            name = _name;
        }

        private static List<Meal> defaultList;
        public static List<Meal> DefaultList
        {
            get
            {
                if (defaultList == null)
                {
                    defaultList = new List<Meal>();
                    defaultList.Add(new Meal("Breakfast", "breakfast"));
                    defaultList.Add(new Meal("Lunch", "lunch"));
                    defaultList.Add(new Meal("Dinner", "dinner"));
                    defaultList.Add(new Meal("Other / Snack", "other"));
                }
                return defaultList;
            }
        }
    }
}
